import fetch from 'common/src/utils/fetch'

/**
 * 先修课标签列表
 */
export function findPrerequisiteCourseTagList(data) {
    return fetch({
      url: '/api/cultureservice/prerequisiteCourseTag/queryPreCourseTagList',
      method: 'POST',
      data
    })
}

export function insertTagInfo(data){
    return fetch({
      url: '/api/cultureservice/prerequisiteCourseTag/savePreCourseTagInfo',
      method: 'POST',
      data
    })
}

/**
 * 查询学院关联课程
*/
export function queryCourseInfo(data){
  return fetch({
    url: '/api/cultureservice/prerequisiteCourseTag/queryCourseInfo',
    method: 'post',
    data
  })
}

/**
 * 删除标签信息
*/
export function deleteTagInfo(data){
  return fetch({
    url: '/api/cultureservice/prerequisiteCourseTag/deletePreCourseTagInfo',
    method: 'POST',
    data
  })
}

/**
 * 修改先修课标签信息
*/
export function updatePreCourseTagInfo(data){
  return fetch({
    url: '/api/cultureservice/prerequisiteCourseTag/updatePreCourseTagInfo',
    method: 'POST',
    data
  })
}

export function findAllDeptList() {//查询所有学院
      return fetch({
          url: '/api/userservice/dept/findDept?virtualDept=0&type=1&manageDept=1',
          method: 'get',
      });
  }